#基于nginx镜像
# FROM nginx-hide-versions
# FROM centos7.2-nginx1.22.0:base-1.1
FROM nginx:1.22.1
#FROM openresty/openresty:1.25.3.1-centos7

MAINTAINER wangzic

#将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面
# RUN  rm -rf /usr/share/nginx/html/dist
COPY dist/ /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/nginx.conf

RUN chmod 777 -R /usr/share/nginx/html/

# 启动 Nginx 服务
CMD ["nginx", "-g", "daemon off;"]